//
//  JudgeUserLogInTool.m
//  1243
//
//  Created by 袖手旁觀 on 16/4/16.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "JudgeUserLogInTool.h"
#import "ReadLoginData.h"
#import <UIKit/UIKit.h>
//#import "LoginViewController.h"

@interface JudgeUserLogInTool () <UIAlertViewDelegate>

@end


@implementation JudgeUserLogInTool

//+ (BOOL)JudgeUserLonInStatus:(UIView *)view {
//    
//    NSDictionary *dict = [ReadLoginData readLoginData];
//    
//    if (dict.count) {
//        return YES;
//    } else {
//        MBProgressHUD *hud = [MBProgressHUD]
//        
//        
//        
//        return NO;
//    }
//    
//}
+ (BOOL)JudgeUserLonInStatus:(UIView *)view {

    NSDictionary *dict = [ReadLoginData readLoginData];
    if (dict.count) {
        return YES;
    } else {
//        MBProgressHUD *hud = [MBProgressHUD showMessage:@"请登录用户" toView:view dimBackground:NO AndCompleteBlock:nil];
//        [view addSubview:hud];
        
               
        return NO;
    }
    
    
}


//- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
//    NSLog(@"%ld",buttonIndex);
//    if (alertView.tag == 10011) {
//        if (buttonIndex == 1) {
//            LoginViewController *logIn = [[LoginViewController alloc] init];
//            [self presentViewController:logIn animated:YES completion:nil];
//        }
//    }
//}

@end
